package com.personal.summaryofproject.enums;

import lombok.Getter;

/**
 * description: BaseEexceptionCode <br>
 * date: 2020/4/18 20:39 <br>
 * author: wenjun.dai <br>
 * version: 1.0 <br>
 */
@Getter
public enum BaseExceptionCode {

    SUCCESS(0L, "请求成功"),
    FAIL(999999L, "系统异常"),
    PARAMETER_EXCEPTION(888888L, "参数异常"),
    RPC_EXCEPTION(777777L, "RPC异常"),

    /**
     * file
     **/
    FILE_EMPTY_EXCEPTION(100001L, "文件为空文件"),
    COLUMN_EXIST_EXCEPTION(100002L, "列名不存在"),
    SHEET_NAME_EXIST_EXCEPTION(100003L, "未找到对应名称的sheet页"),
    SHEET_INDEX_EXIST_EXCEPTION(100004L, "未找到对应索引的sheet页"),
    CELL_TYPE_EXCEPTION(100005L, "单元格类型解析异常"),
    FILE_TYPE_EXCEPTION(100006L, "第一行没有数据"),


    ;
    private Long errCode;

    private String errMsg;

    BaseExceptionCode(Long errCode, String errMsg) {
        this.errCode = errCode;
        this.errMsg = errMsg;
    }
}
